import request from '@/utils/request'

export function getSeckillSkuRelation(id) {
  return request({
    url: `/coupon/seckillSkuRelation/getById/${id}`,
    method: 'post'
  })
}

export function saveSeckillSkuRelation(data) {
  return request({
    url: '/coupon/seckillSkuRelation/save',
    method: 'post',
    data
  })
}

export function updateSeckillSkuRelation(data) {
  return request({
    url: '/coupon/seckillSkuRelation/update',
    method: 'post',
    data
  })
}

export function seckillSkuRelationList(params) {
  return request({
    url: '/coupon/seckillSkuRelation/find',
    method: 'post',
    params
  })
}

export function deleteSeckillSkuRelation(ids) {
  return request({
    url: '/coupon/seckillSkuRelation/delete',
    method: 'post',
    data: ids
  })
}
